// types/user.ts
export interface WxLoginParams {
  paramName: string
}

export interface WxLoginResponse {
  accessToken: string
  refreshToken: string
  expires: string
  tokenType: string
}

/**
 * 用户model
 */
export interface UserModel{
  id: number
  name: string
  avatar: string
  balance: string
  phone: string
  userType: UserType
}

// 用户类型枚举
export enum UserType {
  CUSTOMER = 'CUSTOMER',      // 普通客户
  BARBER = 'BARBER',        // 理发师
  ADMIN = 'ADMIN',           // VIP会员
}

// 导出默认用户对象
export const defaultUser: UserModel = {
  avatar: "https://p0.ssl.qhimgs1.com/t0143f44c7fbfde75ca.jpg",
  id: 0,
  name: "点击获取微信用户信息",
  balance: "0.00",
  phone: "点击获取微信用户信息",
  userType: UserType.ADMIN
}


